/* 
 * File:   PDFRenderer.h
 * Author: Claudio
 *
 * Created on February 25, 2013, 1:33 AM
 */

#ifndef PDFRENDERER_H
#define	PDFRENDERER_H

#include "Renderer.h"
#include <setjmp.h>
#include "hpdf.h"
#include <cstdlib>
#include <cstring>
#include <vector>
#include <stdio.h>
using namespace std;
        
namespace AAM{
    
class PDFRenderer : public Renderer{
    public:
        PDFRenderer(){
            outputFilename="output.pdf";
        };
        virtual void renderAlbum(Document *d);
		virtual void setOutputFilename(std::string filename);
    private:

//        static void error_handler  (HPDF_STATUS   error_no,HPDF_STATUS   detail_no,void *user_data);
        void draw_image (HPDF_Doc     pdf,const char  *filename,float        x,float        y,float        width,float        height,const char  *text);
		string outputFilename;
};
}

#endif	/* PDFRENDERER_H */

